package PrintDemo;

import java.io.FileNotFoundException;
import java.io.PrintWriter;

public class PrintDemo {
	
	public static void main(String[] args) {
		//System.out.println("helloword");
		//BufferedWriter bw = new BufferedWriter(new FileWriter("c.txt"));
		
		PrintWriter pw = null;
		
		try {
			pw = new PrintWriter("c.txt");
			pw.print(true);
			pw.print('a');
			pw.print(12);
			pw.print("Jussi");
			pw.flush();
		} catch (FileNotFoundException e) {
			e.printStackTrace();
		} finally {
			if(pw != null)
				pw.close();
		}	
		
	}
}
